package com.macrounion.atv.service.mapper;

import com.macrounion.atv.service.dto.req.VirtualReqDto;
import com.macrounion.atv.service.entity.VirtualChannel;
import com.macrounion.atv.service.entity.ext.VirtualExt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface VirtualChannelMapperExt {

    List<VirtualExt> getVirtualList(VirtualReqDto virtualReqDto);

    int findCount(@Param("deviceId")String deviceId, @Param("virtualId")String virtualId, @Param("channelCode")String channelCode);

	List<VirtualChannel> getByFxLike(String channelFx);

    VirtualChannel getVirtual(@Param("deviceId") String deviceId, @Param("channelCode") String channelCode);

    int saveFx(VirtualChannel virtual);

    int batchUpdate(HashMap<String, Object> mapVirtual);

    List<VirtualChannel> getVirtualByDeviceId(@Param("deviceId") String deviceId);

	List<VirtualExt> getAll();
}